﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace iRemote.Forms
{
    public partial class CloseConfirm : Form
    {

        DialogResult rs = DialogResult.No;
        public CloseConfirm()
        {
            InitializeComponent();
            button1.Focus();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            rs = DialogResult.No;
            this.Close();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            rs = DialogResult.Yes;
            this.Close();
        }

        private void CloseConfirm_FormClosing(object sender, FormClosingEventArgs e)
        {
            this.DialogResult = rs;
        }

    }
}
